'use strict';

/**
 * @param {Egg.Application} app - egg application
 */

module.exports = app => {
  const { router, controller, middleware } = app;
  const jwtAuth = middleware.jwt();

  router.all('/', controller.home.index);
  router.all('/api/upload', controller.home.upload);
  router.all('/api/remove', controller.home.remove);
  router.all('/api/login', controller.system.login);
  router.all('/api/types', controller.system.types);
  router.all('/api/type', controller.system.type);
  router.all('/api/components', controller.system.components);
  router.all('/api/component', controller.system.component);
  router.all('/api/path', controller.system.path);
};
